package com.gopay.scheduler.shedulerx.alarm;

import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.Subscribe;

/**
 * @author 19371
 */
public class AlarmEventListener {

    private static AlarmEventListener alarmEventListener = new AlarmEventListener();

    private AlarmEventListener() {
    }

    public static Object getSingle() {
        return alarmEventListener;
    }

    @Subscribe
    @AllowConcurrentEvents
    public void listen(AlarmEvent alarmEvent){
        SimpleAlarm.getSingle().alarm(alarmEvent);
    }
}
